<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link href="{$Think.const.index_tpl}/css/css.css" rel="stylesheet" type="text/css" /> 
        <script type="text/javascript" src="{$Think.const.index_tpl}/js/jquery.min.js"></script>
        <script type="text/javascript" src="{$Think.const.index_tpl}/js/jquery.SuperSlide.2.1.1.js"></script>
        <script src="{$Think.const.index_tpl}/js/layer.js"></script>
        <script src="{$Think.const.index_tpl}/js/ajaxfileupload.js"></script>
        <title>{:cfg('name')}注册</title>
    </head>
    <body class="bj_ff">
        <div class="dltop">
            <div class="nr">
                <a href="/" title=""><img src="{$Think.const.index_tpl}/images/logo.png" width="175" height="93" alt=""></a> 
            </div>
        </div>
        <div class="dlnr">
            <div class="dlfp">
                <div class="nr">
                    <div class="dlys slideTxtBox">
                        <div class="pf_dlli hd">
                            <ul>
                                <li class="on">密码修改</li>
                            </ul>
                        </div>
                        <div class="db_dlys bd">
                            <div class="nrb">
                                <div class="lib_dl">
                                    <div class="libnr">
                                        <div class="lf"><img src="{$Think.const.index_tpl}/images/li4.png" width="41" height="39" alt=""></div>
                                        <div class="rf">
                                            <input type="text" maxlength="11" name="phone" id="phone" pattern="[0-9]*"  value="{:$phone}"  readonly="" class="inputa">
                                        </div>
                                    </div>
                                </div>
                                <div class="lib_dl">
                                    <div class="libnr">
                                        <div class="lf"><img src="{$Think.const.index_tpl}/images/li2.jpg" width="41" height="39" alt=""></div>
                                        <div class="rf">
                                            <input type="text"  id="pwd" onkeyup="value=value.replace(/[\W]/g,'') " onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" placeholder="请输入新密码" class="inputa"  >
                                        </div>
                                    </div>
                                </div>
                                <div class="wjmm"><a href="/index/logins/forget/" title=""></a></div>
                                <div class="dl_an">
                                    <input type="submit" name="button" id="button" value="完成" class="an_dl" onclick="ajax_post()">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="dl_dbwz">{:cfg('copyright')}</div>
        <script>
            
            function ajax_post()
            {
                var post = {};
                post.phone = $("#phone").val();
                post.pwd = $("#pwd").val();
                
                $.post("/index/logins/forgettwo/", post, function (data)
                {
                    if (data.status == 1)
                    {
                        layer.msg(data.msg, {
                            time: 2000
                        }, function () {
                            location.href="/index/logins/"; 
                        });
                    }
                    else
                    {
                        layer.msg(data.msg);
                    }
                }, 'json');
            }
        
        </script>